"""
@Project ：HaloInterfaceProject 
@File    ：DeleteArticleCategories.py
@IDE     ：PyCharm 
@Author  ：张成龙
@Date    ：2024/10/24 10:09 
@explain ：删除文章分类
"""
import requests

from api import SYSTEM_URL, SESSION


class DeleteArticleCategories:

    def __init__(self):
        self.url = SYSTEM_URL + "/apis/content.halo.run/v1alpha1/categories/"
        self.headers = {
            'Cookie': SESSION
        }

    def delete_article_categories(self, category_name):

        response = requests.delete(self.url + category_name, headers=self.headers)

        return response


